package com.sinba.common.user.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.sinba.common.entity.BaseDomainEntity;

/**
 * 后台用户管理
 * @author TANYECONG
 *
 */
@SuppressWarnings({ "serial", "rawtypes" })
@Entity
@Table(name="T_User")
public class User extends BaseDomainEntity {
	@Id
    @GeneratedValue( strategy = GenerationType.AUTO )
	private Long userId;
	@Column( unique = true )
	private String loginName;
	private String password;
	private String systemPassword;
	private String userRole;
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSystemPassword() {
		return systemPassword;
	}
	public void setSystemPassword(String systemPassword) {
		this.systemPassword = systemPassword;
	}
	public String getUserRole() {
		return userRole;
	}
	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}
	
}
